package com.ffapp.demo.bean;


import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;

public class DeviceListBean extends BaseListBean {

    private ArrayList<DeviceListData> list = new ArrayList<DeviceListData>();

    public ArrayList<DeviceListData> getList() {
        return list;
    }

    public void setList(ArrayList<DeviceListData> list) {
        this.list = list;
    }


    public void removeList(List<DeviceListData> listTwo){
        if(list.size()<1)return;
        HashSet hs1 = new HashSet(list);
        HashSet hs2 = new HashSet(listTwo);
        hs1.removeAll(hs2);
        ArrayList<DeviceListData> listC = new ArrayList<DeviceListData>();
        listC.addAll(hs1);
        setList(listC);
    }

}
